devtools::install("~/Desktop/Funcion_Rank_Abundance_Variaciones-main(1)/Funcion_Rank_Abundance_Variaciones-main/FuncionR")
## ── R CMD build ─────────────────────────────────────────────────────────────────
##   
   checking for file ‘/home/servicio_social/Desktop/Funcion_Rank_Abundance_Variaciones-main(1)/Funcion_Rank_Abundance_Variaciones-main/FuncionR/DESCRIPTION’ ...
  
✔  checking for file ‘/home/servicio_social/Desktop/Funcion_Rank_Abundance_Variaciones-main(1)/Funcion_Rank_Abundance_Variaciones-main/FuncionR/DESCRIPTION’
## 
  
─  preparing ‘FuncionR’:
##    checking DESCRIPTION meta-information ...
  
✔  checking DESCRIPTION meta-information
## 
  
─  checking for LF line-endings in source and make files and shell scripts
## 
  
─  checking for empty or unneeded directories
##    Omitted ‘LazyData’ from DESCRIPTION
## 
  
─  building ‘FuncionR_0.1.0.tar.gz’
## 
  
   
## 
Running /usr/lib/R/bin/R CMD INSTALL /tmp/RtmpSeZAr2/FuncionR_0.1.0.tar.gz \
##   --install-tests 
## * installing to library ‘/home/servicio_social/R/x86_64-pc-linux-gnu-library/4.3’
## * installing *source* package ‘FuncionR’ ...
## ** using staged installation
## ** R
## ** byte-compile and prepare package for lazy loading
## [1] 93.29133
## [1] 32.52683
## [1] 10.07501
## [1] 3.278941
## [1] 1.027882
## [1] "The data fit the DGB distribution with parameters:"
##                A          a         b
## 2.5 %   0.785361 2.63400743 0.2467829
## 50 %    8.637297 1.36076850 1.5200218
## 97.5 % 94.991857 0.08752957 2.7932608
## [1] "And the fit has an R2 of:"
## [1] 0.99416
## [1] 5
## [1] 108.6973
## [1] 25.58862
## [1] 4.919449
## [1] 0.8164336
## [1] 0.1782022
## [1] "The data fit the DGB distribution with parameters:"
##                   A          a          b
## 2.5 %    0.03428337  4.3914616 -0.2524517
## 50 %     3.51555690  1.9326613  2.2063485
## 97.5 % 360.49956465 -0.5261389  4.6651488
## [1] "And the fit has an R2 of:"
## [1] 0.9940023
## [1] 5
## [1] 106.5075
## [1] 29.26631
## [1] 2.760736
## [1] 1.398284
## [1] 0.2671524
## [1] "The data fit the DGB distribution with parameters:"
##                   A         a         b
## 2.5 %  5.868678e-03  6.292417 -2.467431
## 50 %   1.068434e+01  2.306064  1.518922
## 97.5 % 1.945160e+04 -1.680288  5.505275
## [1] "And the fit has an R2 of:"
## [1] 0.9808251
## [1] 5
## [1] 104.774
## [1] 25.8591
## [1] 7.627725
## [1] 1.519141
## [1] 0.4199817
## [1] "The data fit the DGB distribution with parameters:"
##                  A          a           b
## 2.5 %    0.1804735  3.5524233 -0.01979696
## 50 %     5.8904159  1.7015374  1.83108893
## 97.5 % 192.2554066 -0.1493485  3.68197483
## [1] "And the fit has an R2 of:"
## [1] 0.9980276
## [1] 5
## [1] 99.83083
## [1] 32.83718
## [1] 5.596421
## [1] 1.571464
## [1] 0.3641064
## [1] "The data fit the DGB distribution with parameters:"
##                   A          a          b
## 2.5 %    0.04366282  4.2299192 -0.6015149
## 50 %     5.11930519  1.6999700  1.9284342
## 97.5 % 600.21967925 -0.8299792  4.4583834
## [1] "And the fit has an R2 of:"
## [1] 0.981494
## [1] 5
## [1] 113.1183
## [1] 20.18257
## [1] 5.265346
## [1] 1.409134
## [1] 0.2246233
## [1] "The data fit the DGB distribution with parameters:"
##               A        a        b
## 2.5 %  3.405525 1.961675 1.900124
## 50 %   4.325596 1.834680 2.027119
## 97.5 % 5.494243 1.707685 2.154114
## [1] "And the fit has an R2 of:"
## [1] 0.9999992
## [1] 5
## [1] 102.054
## [1] 26.60217
## [1] 8.602775
## [1] 2.413723
## [1] 0.5273511
## [1] "The data fit the DGB distribution with parameters:"
##                A         a        b
## 2.5 %   1.916554 1.9335121 1.367887
## 50 %    5.042308 1.4198332 1.881566
## 97.5 % 13.265930 0.9061542 2.395245
## [1] "And the fit has an R2 of:"
## [1] 0.9997449
## [1] 5
## [1] 85.27979
## [1] 39.59741
## [1] 11.70143
## [1] 3.29906
## [1] 0.3223105
## [1] "The data fit the DGB distribution with parameters:"
##                A          a        b
## 2.5 %  0.1115130  0.9985399 2.486052
## 50 %   0.4692956  0.2354087 3.249184
## 97.5 % 1.9750012 -0.5277225 4.012315
## [1] "And the fit has an R2 of:"
## [1] 0.996498
## [1] 5
## [1] 111.1672
## [1] 20.76874
## [1] 6.983533
## [1] 1.109026
## [1] 0.1715202
## [1] "The data fit the DGB distribution with parameters:"
##                 A            a        b
## 2.5 %   0.1059692  3.042278522 1.012291
## 50 %    1.8740622  1.516795690 2.537774
## 97.5 % 33.1427280 -0.008687142 4.063257
## [1] "And the fit has an R2 of:"
## [1] 0.9996417
## [1] 5
## [1] 90.2145
## [1] 33.37626
## [1] 11.05581
## [1] 3.953596
## [1] 1.599828
## [1] "The data fit the DGB distribution with parameters:"
##                 A            a          b
## 2.5 %    0.997617  2.840870876 -0.2459417
## 50 %    14.580566  1.416622400  1.1783067
## 97.5 % 213.100706 -0.007626076  2.6025552
## [1] "And the fit has an R2 of:"
## [1] 0.9921689
## [1] 5
##             A         a        b sp  r mc mp
## A   8.6372968 1.3607685 1.520022  5 15 15 15
## A1  3.5155569 1.9326613 2.206349  7 15 15 15
## A2 10.6843437 2.3060643 1.518922  9 15 15 15
## A3  5.8904159 1.7015374 1.831089 11 15 15 15
## A4  5.1193052 1.6999700 1.928434 13 15 15 15
## A5  4.3255959 1.8346805 2.027119 15 15 15 15
## A6  5.0423079 1.4198332 1.881566 17 15 15 15
## A7  0.4692956 0.2354087 3.249184 19 15 15 15
## A8  1.8740622 1.5167957 2.537774 21 15 15 15
## A9 14.5805656 1.4166224 1.178307 23 15 15 15
## ** help
## *** installing help indices
## ** building package indices
## ** testing if installed package can be loaded from temporary location
## ** testing if installed package can be loaded from final location
## ** testing if installed package keeps a record of temporary installation path
## * DONE (FuncionR)

“Variaciones” es una funcion que permite visualizar los cambios de los parametros de la curva Rank-Abundance (A, a y b), en base a las diferentes configuraciones de valores de parametros involucrados en el model McArthur con miaSim. Para estimar los valores A,a y b de la curva Rank-Abundance, se uso la funcion BC_Multiple del mismo paquete DGBD.

Uso

La funcion es facil de usar, colocando la funcion Variaciones y colocar sp= especies, r= numero de recursos, mc= media de produccion, mp= media de produccion, x= el parametro que queremos variar (sp=1, r=2,mc=3 y mp=4), y= cantidad a variar en cada iteracion al parametro seleccionado y z= numero de iteraciones que se haran.

Ejemplos

En este caso, la funcion tendra 15 especies (sp), 20 recursos (r), su media de consumo sera de 3 (mc) y su media de produccion sera de 2 (mp), el parametro a variar en este caso sera 1, que corresponde a especie (sp), cada iteracion aumentara 10 unidades el numero de especies y seran 7 iteraciones.

## [1] 11.57428
## [1] 8.256241
## [1] 6.536961
## [1] 5.67614
## [1] 4.640987
## [1] 3.840188
## [1] 2.379145
## [1] 1.638535
## [1] 1.105529
## [1] 0.7064644
## [1] 0.2468956
## [1] 0.09603854
## [1] 0.02367995
## [1] 0.009706189
## [1] 0.002541904
## [1] "The data fit the DGB distribution with parameters:"
##                  A           a        b
## 2.5 %  0.000292697  0.49122819 2.882471
## 50 %   0.001465017  0.03876151 3.334937
## 97.5 % 0.007332755 -0.41370516 3.787404
## [1] "And the fit has an R2 of:"
## [1] 0.9867176

## [1] 15
## [1] 10.87615
## [1] 7.852662
## [1] 6.884
## [1] 5.769939
## [1] 4.74584
## [1] 3.80771
## [1] 2.803817
## [1] 1.727521
## [1] 1.236251
## [1] 0.6326482
## [1] 0.2751506
## [1] 0.07902578
## [1] 0.03589896
## [1] 0.00470377
## [1] 0.002013095
## [1] "The data fit the DGB distribution with parameters:"
##                   A          a        b
## 2.5 %  0.0001159665  0.3820324 3.087017
## 50 %   0.0006764186 -0.1134272 3.582477
## 97.5 % 0.0039454684 -0.6088867 4.077937
## [1] "And the fit has an R2 of:"
## [1] 0.9844011

## [1] 15
## [1] 12.95254
## [1] 9.133093
## [1] 7.291579
## [1] 5.842833
## [1] 3.65038
## [1] 2.602796
## [1] 2.01114
## [1] 1.414336
## [1] 1.019786
## [1] 0.4371648
## [1] 0.230558
## [1] 0.0864143
## [1] 0.04578081
## [1] 0.01106357
## [1] 0.003873773
## [1] "The data fit the DGB distribution with parameters:"
##                  A            a        b
## 2.5 %  0.001634723 0.7157290452 2.550079
## 50 %   0.005833273 0.3583303861 2.907477
## 97.5 % 0.020815185 0.0009317269 3.264876
## [1] "And the fit has an R2 of:"
## [1] 0.9820651

## [1] 15
## [1] 12.42809
## [1] 7.982475
## [1] 5.615769
## [1] 5.222172
## [1] 4.143004
## [1] 3.368319
## [1] 2.641207
## [1] 2.073767
## [1] 1.689642
## [1] 0.9352127
## [1] 0.3610036
## [1] 0.2278053
## [1] 0.03271101
## [1] 0.009957573
## [1] 0.002195839
## [1] "The data fit the DGB distribution with parameters:"
##                   A          a        b
## 2.5 %  0.0001781415  0.2164020 3.031320
## 50 %   0.0008265988 -0.2147847 3.462507
## 97.5 % 0.0038355222 -0.6459714 3.893693
## [1] "And the fit has an R2 of:"
## [1] 0.9244958

## [1] 15
## [1] 12.79325
## [1] 8.994417
## [1] 6.305699
## [1] 4.891706
## [1] 3.907937
## [1] 3.240429
## [1] 2.368905
## [1] 1.624823
## [1] 1.282324
## [1] 0.8088885
## [1] 0.3787494
## [1] 0.09231855
## [1] 0.02829206
## [1] 0.01313868
## [1] 0.002454847
## [1] "The data fit the DGB distribution with parameters:"
##                   A           a        b
## 2.5 %  0.0004150426  0.45126197 2.847354
## 50 %   0.0017875660  0.04100964 3.257606
## 97.5 % 0.0076989493 -0.36924269 3.667858
## [1] "And the fit has an R2 of:"
## [1] 0.9885777

## [1] 15
## [1] 12.64729
## [1] 9.38019
## [1] 7.035923
## [1] 5.380484
## [1] 4.31452
## [1] 3.034376
## [1] 2.044608
## [1] 1.283461
## [1] 0.8445754
## [1] 0.3909503
## [1] 0.1968429
## [1] 0.1084611
## [1] 0.04133842
## [1] 0.02773342
## [1] 0.002581843
## [1] "The data fit the DGB distribution with parameters:"
##                  A          a        b
## 2.5 %  0.002035560 0.64327014 2.590013
## 50 %   0.005949833 0.34192464 2.891359
## 97.5 % 0.017391044 0.04057914 3.192704
## [1] "And the fit has an R2 of:"
## [1] 0.9821148

## [1] 15
## [1] 12.87821
## [1] 9.101697
## [1] 6.457631
## [1] 5.583571
## [1] 4.094516
## [1] 2.869793
## [1] 2.115415
## [1] 1.583882
## [1] 1.077569
## [1] 0.5918305
## [1] 0.241059
## [1] 0.09568531
## [1] 0.02746195
## [1] 0.01068003
## [1] 0.004329277
## [1] "The data fit the DGB distribution with parameters:"
##                  A          a        b
## 2.5 %  0.000852982  0.7607694 2.511794
## 50 %   0.004552720  0.2902495 2.982314
## 97.5 % 0.024299763 -0.1802703 3.452834
## [1] "And the fit has an R2 of:"
## [1] 0.9913043

## [1] 15
##               A           a        b sp  r mc mp
## A  0.0014650173  0.03876151 3.334937 15 20  3  2
## A1 0.0006764186 -0.11342716 3.582477 25 20  3  2
## A2 0.0058332728  0.35833039 2.907477 35 20  3  2
## A3 0.0008265988 -0.21478471 3.462507 45 20  3  2
## A4 0.0017875660  0.04100964 3.257606 55 20  3  2
## A5 0.0059498334  0.34192464 2.891359 65 20  3  2
## A6 0.0045527200  0.29024952 2.982314 75 20  3  2

La tabla del final es el resultado, en donde se observan los diferentes valores de A, a y b conforme el numero de especies, se oberva que por cada iteracion, el numero de epecies aumenta de 10 en 10. Hasta llegar al 75. Respecto a los valores de A, a y b, no hay un patron de cambio, pues algunos valores como A, disminuyen, posteriormente vuelven a aumentar. En los valores de a, hay cambios pero no hay un patron distinguible. El valor de b, el cambio es poco e igual sin patron.

## [1] 12.86782
## [1] 8.556612
## [1] 6.9421
## [1] 5.848937
## [1] 4.466987
## [1] 3.375642
## [1] 2.153874
## [1] 1.22036
## [1] 0.6098876
## [1] 0.3639595
## [1] 0.1992842
## [1] 0.0674429
## [1] 0.04116555
## [1] 0.0129549
## [1] 0.00630457
## [1] "The data fit the DGB distribution with parameters:"
##                  A          a        b
## 2.5 %  0.002108727 1.07094358 2.145168
## 50 %   0.013138765 0.55694917 2.659163
## 97.5 % 0.081863208 0.04295476 3.173157
## [1] "And the fit has an R2 of:"
## [1] 0.9416344

## [1] 15
## [1] 14.16466
## [1] 9.581113
## [1] 7.153261
## [1] 4.666601
## [1] 3.68241
## [1] 2.721209
## [1] 1.990303
## [1] 1.210829
## [1] 0.7295916
## [1] 0.4773805
## [1] 0.1816476
## [1] 0.1060561
## [1] 0.04493222
## [1] 0.01455671
## [1] 0.008776959
## [1] "The data fit the DGB distribution with parameters:"
##                  A         a        b
## 2.5 %  0.005095013 1.0891752 2.005989
## 50 %   0.024475814 0.6482446 2.446919
## 97.5 % 0.117578798 0.2073141 2.887850
## [1] "And the fit has an R2 of:"
## [1] 0.968782

## [1] 15
## [1] 12.10824
## [1] 9.936672
## [1] 7.113703
## [1] 5.79338
## [1] 4.562268
## [1] 2.490313
## [1] 1.717739
## [1] 1.327935
## [1] 0.8536459
## [1] 0.5115344
## [1] 0.1696162
## [1] 0.1069818
## [1] 0.02617219
## [1] 0.01047172
## [1] 0.004658525
## [1] "The data fit the DGB distribution with parameters:"
##                  A           a        b
## 2.5 %  0.001278736  0.91891606 2.375997
## 50 %   0.007110374  0.43689378 2.858019
## 97.5 % 0.039537029 -0.04512851 3.340042
## [1] "And the fit has an R2 of:"
## [1] 0.9472057

## [1] 15
## [1] 13.22965
## [1] 8.680912
## [1] 6.691756
## [1] 5.892724
## [1] 4.667826
## [1] 3.14391
## [1] 1.976082
## [1] 1.204207
## [1] 0.729912
## [1] 0.2828528
## [1] 0.1397636
## [1] 0.04886141
## [1] 0.02737422
## [1] 0.01217111
## [1] 0.00533429
## [1] "The data fit the DGB distribution with parameters:"
##                  A          a        b
## 2.5 %  0.001401734 1.24376427 2.097091
## 50 %   0.012414331 0.63097110 2.709884
## 97.5 % 0.109946397 0.01817793 3.322677
## [1] "And the fit has an R2 of:"
## [1] 0.9312671

## [1] 15
## [1] 12.25997
## [1] 9.648963
## [1] 7.943477
## [1] 5.064058
## [1] 3.907563
## [1] 3.133058
## [1] 2.150831
## [1] 1.682391
## [1] 0.5362762
## [1] 0.2144403
## [1] 0.117471
## [1] 0.04125414
## [1] 0.02156966
## [1] 0.01000321
## [1] 0.002006658
## [1] "The data fit the DGB distribution with parameters:"
##                   A           a        b
## 2.5 %  0.0005246444  1.06386653 2.528855
## 50 %   0.0040286719  0.49115660 3.101565
## 97.5 % 0.0309356145 -0.08155333 3.674275
## [1] "And the fit has an R2 of:"
## [1] 0.9270923

## [1] 15
## [1] 12.57406
## [1] 9.729498
## [1] 7.587592
## [1] 5.825361
## [1] 3.812404
## [1] 2.182179
## [1] 1.744443
## [1] 1.468474
## [1] 0.9460666
## [1] 0.4108477
## [1] 0.2768595
## [1] 0.1038778
## [1] 0.05218079
## [1] 0.01405956
## [1] 0.005426058
## [1] "The data fit the DGB distribution with parameters:"
##                  A         a        b
## 2.5 %  0.003159939 0.7918701 2.353312
## 50 %   0.010737003 0.4482272 2.696955
## 97.5 % 0.036482742 0.1045842 3.040598
## [1] "And the fit has an R2 of:"
## [1] 0.9606897

## [1] 15
## [1] 12.89156
## [1] 8.891662
## [1] 7.73404
## [1] 5.450642
## [1] 3.934807
## [1] 3.063296
## [1] 1.625242
## [1] 1.288961
## [1] 0.7695957
## [1] 0.6439588
## [1] 0.2875422
## [1] 0.08270715
## [1] 0.04670464
## [1] 0.01712684
## [1] 0.005485522
## [1] "The data fit the DGB distribution with parameters:"
##                 A          a        b
## 2.5 %  0.00280326 0.80944189 2.324041
## 50 %   0.01061060 0.43547689 2.698006
## 97.5 % 0.04016207 0.06151189 3.071971
## [1] "And the fit has an R2 of:"
## [1] 0.9704292

## [1] 15
##              A         a        b sp  r mc mp
## A  0.013138765 0.5569492 2.659163 15 20  5  5
## A1 0.024475814 0.6482446 2.446919 15 30  5  5
## A2 0.007110374 0.4368938 2.858019 15 40  5  5
## A3 0.012414331 0.6309711 2.709884 15 50  5  5
## A4 0.004028672 0.4911566 3.101565 15 60  5  5
## A5 0.010737003 0.4482272 2.696955 15 70  5  5
## A6 0.010610595 0.4354769 2.698006 15 80  5  5

En este ejemplo se cambio el parametro de recursos, nuevamente, no es observable algun patron de cambio en A, a y b de la curva Rank-Abundance

## [1] 12.30331
## [1] 8.954974
## [1] 7.485984
## [1] 5.205621
## [1] 4.24141
## [1] 3.14402
## [1] 2.098219
## [1] 1.529783
## [1] 0.8718327
## [1] 0.4992576
## [1] 0.2912173
## [1] 0.06478389
## [1] 0.02865772
## [1] 0.01020239
## [1] 0.004062493
## [1] "The data fit the DGB distribution with parameters:"
##                   A          a        b
## 2.5 %  0.0007683555  0.8132409 2.503094
## 50 %   0.0044817957  0.3177769 2.998558
## 97.5 % 0.0261421865 -0.1776871 3.494022
## [1] "And the fit has an R2 of:"
## [1] 0.9775393

## [1] 15
## [1] 21.06888
## [1] 11.60056
## [1] 6.646839
## [1] 3.191724
## [1] 1.857445
## [1] 1.186018
## [1] 0.5059562
## [1] 0.2313256
## [1] 0.1586249
## [1] 0.1035282
## [1] 0.07195975
## [1] 0.04857578
## [1] 0.02950155
## [1] 0.01997007
## [1] 0.01241741
## [1] "The data fit the DGB distribution with parameters:"
##                 A        a         b
## 2.5 %   0.2551386 2.515098 0.6726944
## 50 %    1.6626004 1.988504 1.1992891
## 97.5 % 10.8342707 1.461909 1.7258838
## [1] "And the fit has an R2 of:"
## [1] 0.8861769

## [1] 15
## [1] 23.35437
## [1] 9.557011
## [1] 6.310241
## [1] 3.971963
## [1] 1.682166
## [1] 0.8345211
## [1] 0.4180936
## [1] 0.2144472
## [1] 0.1365778
## [1] 0.08908104
## [1] 0.05823456
## [1] 0.04699771
## [1] 0.02874871
## [1] 0.01791485
## [1] 0.01296549
## [1] "The data fit the DGB distribution with parameters:"
##                 A        a         b
## 2.5 %   0.3593935 2.674291 0.5271204
## 50 %    2.5068115 2.128587 1.0728247
## 97.5 % 17.4853009 1.582882 1.6185290
## [1] "And the fit has an R2 of:"
## [1] 0.9313301

## [1] 15
## [1] 23.04997
## [1] 11.70448
## [1] 6.710947
## [1] 2.178046
## [1] 1.277198
## [1] 0.6887704
## [1] 0.4124961
## [1] 0.2874049
## [1] 0.1876073
## [1] 0.1049678
## [1] 0.05048089
## [1] 0.03594358
## [1] 0.02484133
## [1] 0.01395068
## [1] 0.006232731
## [1] "The data fit the DGB distribution with parameters:"
##                A        a         b
## 2.5 %  0.2473526 2.361976 0.9949577
## 50 %   0.9671019 1.978902 1.3780308
## 97.5 % 3.7811847 1.595829 1.7611039
## [1] "And the fit has an R2 of:"
## [1] 0.9116676

## [1] 15
## [1] 26.98467
## [1] 8.600587
## [1] 3.807485
## [1] 2.60963
## [1] 1.957017
## [1] 1.084895
## [1] 0.6038766
## [1] 0.4438511
## [1] 0.2268072
## [1] 0.1667684
## [1] 0.1029076
## [1] 0.07088079
## [1] 0.03848581
## [1] 0.02457516
## [1] 0.01090151
## [1] "The data fit the DGB distribution with parameters:"
##                A        a        b
## 2.5 %  0.3599683 1.934006 1.099355
## 50 %   0.8432651 1.694842 1.338518
## 97.5 % 1.9754410 1.455679 1.577682
## [1] "And the fit has an R2 of:"
## [1] 0.997651

## [1] 15
## [1] 25.83601
## [1] 8.4808
## [1] 5.258403
## [1] 2.675589
## [1] 1.54641
## [1] 1.222296
## [1] 0.7940942
## [1] 0.3454136
## [1] 0.1916541
## [1] 0.1434658
## [1] 0.1208408
## [1] 0.0539579
## [1] 0.04027937
## [1] 0.01645172
## [1] 0.007665422
## [1] "The data fit the DGB distribution with parameters:"
##                A        a        b
## 2.5 %  0.1807448 1.939683 1.240206
## 50 %   0.5085583 1.649041 1.530847
## 97.5 % 1.4309211 1.358400 1.821489
## [1] "And the fit has an R2 of:"
## [1] 0.9934992

## [1] 15
## [1] 20.94239
## [1] 11.56165
## [1] 5.188672
## [1] 3.561178
## [1] 2.195087
## [1] 1.465693
## [1] 0.865311
## [1] 0.4895192
## [1] 0.2237586
## [1] 0.07926713
## [1] 0.05805442
## [1] 0.04291292
## [1] 0.03012482
## [1] 0.01860852
## [1] 0.01111011
## [1] "The data fit the DGB distribution with parameters:"
##                 A        a         b
## 2.5 %  0.08200295 2.385933 0.8584293
## 50 %   0.72443609 1.773843 1.4705192
## 97.5 % 6.39986295 1.161753 2.0826092
## [1] "And the fit has an R2 of:"
## [1] 0.9193354

## [1] 15
##              A         a        b sp  r mc mp
## A  0.004481796 0.3177769 2.998558 15 20  5  5
## A1 1.662600424 1.9885037 1.199289 15 20 15  5
## A2 2.506811503 2.1285867 1.072825 15 20 25  5
## A3 0.967101882 1.9789025 1.378031 15 20 35  5
## A4 0.843265121 1.6948423 1.338518 15 20 45  5
## A5 0.508558292 1.6490413 1.530847 15 20 55  5
## A6 0.724436091 1.7738426 1.470519 15 20 65  5

EL parametro que se cambio en este ejemplo fue el de la media de consumo, en los valores de la curva Rank-Abundance, nuevamente no se observa algun patron de cambio srespecto al parametro que se escogio.

## [1] 11.55223
## [1] 8.597794
## [1] 7.08615
## [1] 5.763601
## [1] 4.97673
## [1] 3.462036
## [1] 2.269328
## [1] 1.29278
## [1] 0.7939992
## [1] 0.5404702
## [1] 0.2352885
## [1] 0.1086133
## [1] 0.03654196
## [1] 0.01421555
## [1] 0.003557019
## [1] "The data fit the DGB distribution with parameters:"
##                  A          a        b
## 2.5 %  0.001192848  0.5869592 2.659219
## 50 %   0.004073156  0.2419308 3.004247
## 97.5 % 0.013908399 -0.1030976 3.349276
## [1] "And the fit has an R2 of:"
## [1] 0.9699036

## [1] 15
## [1] 13.57367
## [1] 8.921817
## [1] 6.771873
## [1] 5.619684
## [1] 4.285891
## [1] 3.224009
## [1] 2.001737
## [1] 1.253285
## [1] 0.7544685
## [1] 0.1882384
## [1] 0.08181683
## [1] 0.02943811
## [1] 0.01695453
## [1] 0.008297487
## [1] 0.00214957
## [1] "The data fit the DGB distribution with parameters:"
##                  A          a        b
## 2.5 %  0.000394475  1.2914708 2.381665
## 50 %   0.004720524  0.5941176 3.079018
## 97.5 % 0.056488609 -0.1032355 3.776372
## [1] "And the fit has an R2 of:"
## [1] 0.9402623

## [1] 15
## [1] 14.74761
## [1] 9.16126
## [1] 6.91061
## [1] 5.473439
## [1] 4.148895
## [1] 2.820874
## [1] 1.47901
## [1] 0.9973047
## [1] 0.5272195
## [1] 0.2334591
## [1] 0.1200186
## [1] 0.07904826
## [1] 0.01666382
## [1] 0.01175225
## [1] 0.006171642
## [1] "The data fit the DGB distribution with parameters:"
##                 A         a        b
## 2.5 %  0.00270236 1.4754497 1.885922
## 50 %   0.02501109 0.8502801 2.511091
## 97.5 % 0.23148447 0.2251104 3.136261
## [1] "And the fit has an R2 of:"
## [1] 0.9301733

## [1] 15
## [1] 12.62968
## [1] 9.000417
## [1] 6.838209
## [1] 5.392429
## [1] 4.057658
## [1] 3.009502
## [1] 2.375371
## [1] 1.478955
## [1] 0.9656439
## [1] 0.5050498
## [1] 0.2835721
## [1] 0.123022
## [1] 0.05013551
## [1] 0.0156111
## [1] 0.008075567
## [1] "The data fit the DGB distribution with parameters:"
##                  A            a        b
## 2.5 %  0.002859018  0.810439850 2.229498
## 50 %   0.012125545  0.404512097 2.635426
## 97.5 % 0.051426351 -0.001415657 3.041354
## [1] "And the fit has an R2 of:"
## [1] 0.9816151

## [1] 15
## [1] 13.72782
## [1] 10.69351
## [1] 7.956824
## [1] 4.817273
## [1] 3.689429
## [1] 2.29898
## [1] 1.516363
## [1] 1.040421
## [1] 0.5546009
## [1] 0.2405156
## [1] 0.09877497
## [1] 0.06604097
## [1] 0.01896815
## [1] 0.009907944
## [1] 0.003909536
## [1] "The data fit the DGB distribution with parameters:"
##                  A         a        b
## 2.5 %  0.002315629 1.3303014 2.140278
## 50 %   0.015581434 0.7946973 2.675882
## 97.5 % 0.104844550 0.2590933 3.211486
## [1] "And the fit has an R2 of:"
## [1] 0.8989576

## [1] 15
## [1] 12.99609
## [1] 9.735317
## [1] 6.970535
## [1] 4.91348
## [1] 3.685636
## [1] 2.909256
## [1] 2.066788
## [1] 1.378963
## [1] 0.7859544
## [1] 0.593832
## [1] 0.3466596
## [1] 0.2434065
## [1] 0.08444018
## [1] 0.0174986
## [1] 0.005474069
## [1] "The data fit the DGB distribution with parameters:"
##                  A          a        b
## 2.5 %  0.004372141 0.52793496 2.457241
## 50 %   0.009715869 0.30359366 2.681582
## 97.5 % 0.021590822 0.07925236 2.905923
## [1] "And the fit has an R2 of:"
## [1] 0.9960866

## [1] 15
## [1] 12.20085
## [1] 9.42819
## [1] 6.98124
## [1] 5.839912
## [1] 4.257576
## [1] 3.62525
## [1] 2.345086
## [1] 1.252192
## [1] 0.4966284
## [1] 0.1761509
## [1] 0.08269407
## [1] 0.02852703
## [1] 0.009277946
## [1] 0.006490909
## [1] 0.003270558
## [1] "The data fit the DGB distribution with parameters:"
##                   A          a        b
## 2.5 %  0.0002699148  1.5790796 2.119374
## 50 %   0.0062775797  0.6950307 3.003423
## 97.5 % 0.1460016394 -0.1890181 3.887472
## [1] "And the fit has an R2 of:"
## [1] 0.8689136

## [1] 15
##              A         a        b sp  r mc mp
## A  0.004073156 0.2419308 3.004247 15 20  5  5
## A1 0.004720524 0.5941176 3.079018 15 20  5 15
## A2 0.025011086 0.8502801 2.511091 15 20  5 25
## A3 0.012125545 0.4045121 2.635426 15 20  5 35
## A4 0.015581434 0.7946973 2.675882 15 20  5 45
## A5 0.009715869 0.3035937 2.681582 15 20  5 55
## A6 0.006277580 0.6950307 3.003423 15 20  5 65

En este ejemplo el parametro que se cambio fue la media de produccion. no se logro observar algun patron en los cambios de los valores de la curva Rank-Abundance

## [1] 2.322149
## [1] 1.89187
## [1] 1.54977
## [1] 1.356077
## [1] 1.202607
## [1] 0.9854582
## [1] 0.7965496
## [1] 0.6810747
## [1] 0.5131858
## [1] 0.4132244
## [1] 0.3599809
## [1] 0.3219465
## [1] 0.2861615
## [1] 0.2191751
## [1] 0.1888294
## [1] 0.151255
## [1] 0.1222973
## [1] 0.1037456
## [1] 0.09381957
## [1] 0.06625474
## [1] 0.0585287
## [1] 0.05140092
## [1] 0.04604574
## [1] 0.03867423
## [1] 0.02831588
## [1] 0.02601283
## [1] 0.0204335
## [1] 0.01839356
## [1] 0.01475936
## [1] 0.0130274
## [1] 0.01128924
## [1] 0.009818601
## [1] 0.008904648
## [1] 0.008107825
## [1] 0.006360197
## [1] 0.004995084
## [1] 0.004433114
## [1] 0.004068317
## [1] 0.00363388
## [1] 0.003193372
## [1] 0.002793902
## [1] 0.002434276
## [1] 0.002037645
## [1] 0.001817525
## [1] 0.001498603
## [1] 0.001347794
## [1] 0.0009482676
## [1] 0.0007254394
## [1] 0.0003923049
## [1] 0.0001768187
## [1] "The data fit the DGB distribution with parameters:"
##                  A        a        b
## 2.5 %  0.008278722 1.671072 1.310952
## 50 %   0.026454064 1.461890 1.520134
## 97.5 % 0.084532075 1.252708 1.729316
## [1] "And the fit has an R2 of:"
## [1] 0.649112

## [1] 50
## [1] 3.003019
## [1] 1.805181
## [1] 1.459873
## [1] 1.221094
## [1] 1.066977
## [1] 0.8817864
## [1] 0.740715
## [1] 0.6474038
## [1] 0.5426712
## [1] 0.4505709
## [1] 0.4021411
## [1] 0.3188898
## [1] 0.2683533
## [1] 0.2101391
## [1] 0.1764291
## [1] 0.1398695
## [1] 0.1016124
## [1] 0.08145702
## [1] 0.07131703
## [1] 0.05932213
## [1] 0.05247813
## [1] 0.0443232
## [1] 0.03893263
## [1] 0.03235643
## [1] 0.02996876
## [1] 0.02531709
## [1] 0.02161329
## [1] 0.01785084
## [1] 0.01556549
## [1] 0.01306667
## [1] 0.0110241
## [1] 0.01006798
## [1] 0.009024856
## [1] 0.008123851
## [1] 0.006881669
## [1] 0.005538098
## [1] 0.004508452
## [1] 0.00394375
## [1] 0.003517462
## [1] 0.003190541
## [1] 0.00267779
## [1] 0.002461407
## [1] 0.002064276
## [1] 0.001750016
## [1] 0.001496328
## [1] 0.001201246
## [1] 0.0009098025
## [1] 0.0006744078
## [1] 0.0003784341
## [1] 0.000272569
## [1] "The data fit the DGB distribution with parameters:"
##                 A        a        b
## 2.5 %  0.01289890 1.720313 1.234631
## 50 %   0.03931501 1.519641 1.435304
## 97.5 % 0.11982962 1.318968 1.635976
## [1] "And the fit has an R2 of:"
## [1] 0.7832111

## [1] 50
## [1] 2.839239
## [1] 2.089585
## [1] 1.614082
## [1] 1.384269
## [1] 1.094757
## [1] 0.8763101
## [1] 0.6558314
## [1] 0.5510382
## [1] 0.4809438
## [1] 0.3960185
## [1] 0.3446214
## [1] 0.2579949
## [1] 0.2255162
## [1] 0.2013112
## [1] 0.1695158
## [1] 0.1310431
## [1] 0.1152184
## [1] 0.1018885
## [1] 0.08066347
## [1] 0.06917855
## [1] 0.05552713
## [1] 0.04869639
## [1] 0.0394445
## [1] 0.02930233
## [1] 0.02442452
## [1] 0.02153616
## [1] 0.0172191
## [1] 0.01451327
## [1] 0.0120773
## [1] 0.01021144
## [1] 0.009198638
## [1] 0.00827052
## [1] 0.007383077
## [1] 0.006427182
## [1] 0.005636184
## [1] 0.004703682
## [1] 0.004400747
## [1] 0.003866329
## [1] 0.003481534
## [1] 0.002917232
## [1] 0.002375419
## [1] 0.00201468
## [1] 0.001755868
## [1] 0.001517119
## [1] 0.00122713
## [1] 0.0009851167
## [1] 0.0007176395
## [1] 0.0005732263
## [1] 0.000370377
## [1] 0.0002007907
## [1] "The data fit the DGB distribution with parameters:"
##                 A        a        b
## 2.5 %  0.01205023 1.766651 1.262364
## 50 %   0.03730135 1.563191 1.465825
## 97.5 % 0.11546595 1.359730 1.669285
## [1] "And the fit has an R2 of:"
## [1] 0.7261661

## [1] 50
## [1] 2.7254
## [1] 1.867957
## [1] 1.561743
## [1] 1.303469
## [1] 1.107575
## [1] 0.8235036
## [1] 0.7452829
## [1] 0.5504347
## [1] 0.4968128
## [1] 0.4209326
## [1] 0.3763046
## [1] 0.3154871
## [1] 0.2666937
## [1] 0.2229739
## [1] 0.1990284
## [1] 0.1713749
## [1] 0.1472424
## [1] 0.1176143
## [1] 0.09062234
## [1] 0.08072134
## [1] 0.07076577
## [1] 0.05601005
## [1] 0.04697788
## [1] 0.04050036
## [1] 0.03007032
## [1] 0.02632381
## [1] 0.02350439
## [1] 0.02081702
## [1] 0.0186417
## [1] 0.0161339
## [1] 0.01177324
## [1] 0.009334595
## [1] 0.00756615
## [1] 0.006524095
## [1] 0.006009282
## [1] 0.005456107
## [1] 0.004843501
## [1] 0.004457025
## [1] 0.003873996
## [1] 0.003508984
## [1] 0.002771176
## [1] 0.002517929
## [1] 0.002323154
## [1] 0.002051679
## [1] 0.001723026
## [1] 0.001443443
## [1] 0.001227582
## [1] 0.000893966
## [1] 0.0005390739
## [1] 0.000243529
## [1] "The data fit the DGB distribution with parameters:"
##                 A        a        b
## 2.5 %  0.01133434 1.683096 1.227464
## 50 %   0.03669492 1.471559 1.439001
## 97.5 % 0.11879982 1.260022 1.650538
## [1] "And the fit has an R2 of:"
## [1] 0.7474186

## [1] 50
##             A        a        b  sp  r mc mp
## A  0.02645406 1.461890 1.520134  50 30 20 20
## A1 0.03931501 1.519641 1.435304  80 30 20 20
## A2 0.03730135 1.563191 1.465825 110 30 20 20
## A3 0.03669492 1.471559 1.439001 140 30 20 20

Limitaciones

Los parametros de especies y numero de recursos, cuando son una gran cantidad, puede ser desafiante para algunos equipos dependiendo las especificaciones. El parametro de especeis al llegar a 40, puede resultar en el aborto de la sesion en algunos equipos, mientras que otros son capaces de llegar a 300 especies. El parametro de recursos es un poco menos demandante, pero puede llegar hasta la cantidad de 250.

La funcion puede unicamente ver el efecto del cambio de parametros de manera individual. No permite el cambio de mas de un parametro.

Efecto en los parametros